package com.xiong.response;

/**
 * @author 熊宇
 * @date 2022/4/29
 * @description
 */
public enum ResultCode {

    /**
     * 数据操作错误定义
     */
    SUCCESS(200, "OK"),
    NO_PERMISSION(404, "错误！");

    /**
     * 错误返回码
     */
    private Integer Code;

    /**
     * 错误返回消息
     */
    private String Msg;

    ResultCode(Integer Code, String Msg) {
        this.Code = Code;
        this.Msg = Msg;
    }

    public Integer getCode() {
        return Code;
    }

    public String getMsg() {
        return Msg;
    }
}
